#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main()
{
	double low = 0;
	double high = 3;
	double mid = 0;
	while (fabs(high-low)>10e-6)
	{
		mid = (low + high) / 2;
		if (((mid * mid * mid - mid * mid - 1) * (low * low * low - low * low - 1)) < 0)
		{
			high = mid;
		}
		else if (((mid * mid * mid - mid * mid - 1) * (high * high * high - high * high - 1)) < 0)
		{
			low = mid;
		}
	}
	printf("%lf", mid);
	return 0;
}